package com.dianxin.farm.request.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @auther xukai
 * @date 2020/10/3.
 */

@Data
@ApiModel("提交订单表单")
public class CreateOrderRequest {


    @NotNull(message = "正确选择商品")
    @ApiModelProperty("购买的商品id")
    private Integer goodsInfoId;

    @NotNull
    @Min(value = 1,message = "请正确填写商品数量")
    @ApiModelProperty("购买数量")
    private Integer goodsNum;

    @ApiModelProperty("购买时候的备注")
    private String remark;


}
